﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class up_parking : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "UserParkinginfos",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "UserParkinginfos",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "UserCarInfos",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "UserCarInfos",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "Places",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "Places",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "Parkings",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "Parkings",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "ParkGuards",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "ParkGuards",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "Devices",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "Devices",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "CarlogRealTimes",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "CarlogRealTimes",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "CarLogHistories",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "CarLogHistories",
                newName: "Neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "tenantId",
                table: "CarInfos",
                newName: "TenantId");

            migrationBuilder.RenameColumn(
                name: "neighbourhood_id",
                table: "CarInfos",
                newName: "Neighbourhood_id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "UserParkinginfos",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "UserParkinginfos",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "UserCarInfos",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "UserCarInfos",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "Places",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "Places",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "Parkings",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "Parkings",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "ParkGuards",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "ParkGuards",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "Devices",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "Devices",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "CarlogRealTimes",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "CarlogRealTimes",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "CarLogHistories",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "CarLogHistories",
                newName: "neighbourhood_id");

            migrationBuilder.RenameColumn(
                name: "TenantId",
                table: "CarInfos",
                newName: "tenantId");

            migrationBuilder.RenameColumn(
                name: "Neighbourhood_id",
                table: "CarInfos",
                newName: "neighbourhood_id");
        }
    }
}
